package com.sls.game.service;

import com.sls.core.socket.Head;
import com.sls.core.socket.ServerDisponseException;

/**
 * 
 * @description 商品信息管理接口
 * @author Wangxuegang
 * @date 2012-9-14
 * 
 */
public interface GoodsInfoManageService {

	/**
	 * 商品信息分页查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryPageInquire(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 商品信息单条记录查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryByGoodsId(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 商品新增
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String insert(String body, Head head) throws ServerDisponseException;

	/**
	 * 商品更新
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String update(String body, Head head) throws ServerDisponseException;

	/**
	 * 商品上架、下架操作
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String updateUpOrDownFrame(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 根据品牌Id，查询该品牌下的所有商品
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryListByBrandId(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 查询未加入到某一价格模版下的 所有 商品编号
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryNotInSpecialPrice(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 查询未加入到供货规则下的所有商品编号和名称
	 * 
	 * @return
	 */
	public String queryGoodsIdAndNameNotInRule(Head head)
			throws ServerDisponseException;

	/**
	 * 根据商品编号删除
	 * 
	 * @param body
	 * @param head
	 */
	public void deleteByGoodsId(String body, Head head);
}
